Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / proto / build.gradle.kts

Displaying Raw • Download

core/proto/build.gradle.kts copilot/create-implementation-plan (228d872f) Text, 2.36 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Te6edf3plugins Tb4b4b4{
Te6edf3aliasTb4b4b4(Te6edf3libsTb4b4b4.Te6edf3pluginsTb4b4b4.Te6edf3meshtasticTb4b4b4.Te6edf3kmpTb4b4b4.Te6edf3libraryTb4b4b4)
Te6edf3aliasTb4b4b4(Te6edf3libsTb4b4b4.Te6edf3pluginsTb4b4b4.Te6edf3wireTb4b4b4)
Te6edf3`maven-publish`
Tb4b4b4}

Te6edf3applyTb4b4b4(Te6edf3from Tff7b72= Te6edf3rootProjectTb4b4b4.Te6edf3fileTb4b4b4(Ta5d6ff"Ta5d6ffgradle/publishing.gradle.ktsTa5d6ff"Tb4b4b4)Tb4b4b4)

Te6edf3kotlin Tb4b4b4{
T8b949e// Override minSdk for ATAK compatibility (standard is 26)
Te6edf3android Tb4b4b4{ Te6edf3minSdk Tff7b72= T79c0ff2T79c0ff1 Tb4b4b4}

Te6edf3sourceSets Tb4b4b4{ Te6edf3commonMainTb4b4b4.Te6edf3dependencies Tb4b4b4{ Te6edf3apiTb4b4b4(Te6edf3libsTb4b4b4.Te6edf3wireTb4b4b4.Te6edf3runtimeTb4b4b4) Tb4b4b4} Tb4b4b4}
Tb4b4b4}

Te6edf3wire Tb4b4b4{
Te6edf3sourcePath Tb4b4b4{
Te6edf3srcDirTb4b4b4(Ta5d6ff"Ta5d6ffsrc/main/protoTa5d6ff"Tb4b4b4)
Te6edf3srcDirTb4b4b4(Ta5d6ff"Ta5d6ffsrc/main/wire-includesTa5d6ff"Tb4b4b4)
Tb4b4b4}
Te6edf3kotlin Tb4b4b4{
T8b949e// Wire 6 optimization: Avoid unnecessary immutable copies of repeated/map fields.
T8b949e// Improves performance by reducing allocations when decoding/creating messages.
Te6edf3makeImmutableCopies Tff7b72= Tff7b72false

T8b949e// Flattens 'oneof' fields into nullable properties on the parent class.
T8b949e// This removes the intermediate sealed classes, simplifying usage and reducing method count/binary size.
T8b949e// Codebase is already written to use the nullable properties (e.g. packet.decoded vs
T8b949e// packet.payload_variant.decoded).
Te6edf3boxOneOfsMinSize Tff7b72= T79c0ff5T79c0ff0T79c0ff0T79c0ff0
Tb4b4b4}
Te6edf3rootTb4b4b4(Ta5d6ff"Ta5d6ffmeshtastic.*Ta5d6ff"Tb4b4b4)
Te6edf3pruneTb4b4b4(Ta5d6ff"Ta5d6ffmeshtastic.MeshPacket#delayedTa5d6ff"Tb4b4b4)
Te6edf3pruneTb4b4b4(Ta5d6ff"Ta5d6ffmeshtastic.MeshPacket.DelayedTa5d6ff"Tb4b4b4)
Tb4b4b4}

T8b949e// Modern KMP publication uses the project name as the artifactId by default.
T8b949e// We rename the publications to include the 'core-' prefix for consistency.
Te6edf3publishing Tb4b4b4{
Te6edf3publicationsTb4b4b4.Te6edf3withTypeTff7b72<Te6edf3MavenPublicationTff7b72>Tb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3configureEach Tb4b4b4{
Tff7b72val Te6edf3baseId Tff7b72= Te6edf3artifactId
Tff7b72if Tb4b4b4(Te6edf3baseId Tff7b72=Tff7b72= Ta5d6ff"Ta5d6ffprotoTa5d6ff"Tb4b4b4) Tb4b4b4{
Te6edf3artifactId Tff7b72= Ta5d6ff"Ta5d6ffmeshtastic-android-protoTa5d6ff"
Tb4b4b4} Tff7b72else Tff7b72if Tb4b4b4(Te6edf3baseIdTb4b4b4.Te6edf3startsWithTb4b4b4(Ta5d6ff"Ta5d6ffproto-Ta5d6ff"Tb4b4b4)Tb4b4b4) Tb4b4b4{
Te6edf3artifactId Tff7b72= Te6edf3baseIdTb4b4b4.Te6edf3replaceTb4b4b4(Ta5d6ff"Ta5d6ffproto-Ta5d6ff"Tb4b4b4, Ta5d6ff"Ta5d6ffmeshtastic-android-proto-Ta5d6ff"Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s